import platform
import sys

# 根据hostname 区分测试环境与发布环境不同的配置
# 75:ND-16090619874
prod = False
if platform.node() == "ND-16090619874" or prod:
    from sdklog.settings.base import *
    from sdklog.settings.product import *
else:
    from sdklog.settings.base import *
    from sdklog.settings.dev import *

# unitest测试数据库
if 'test' in sys.argv:
    DATABASES['default'] = {
        'ENGINE': 'django.db.backends.sqlite3',
    }
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
